/**
 * Created by inZa on 1. 10. 2014.
 *
 * App setting and definitions
 */

angular.module('aaser', [
    'aaser.controllers',
    'aaser.services',
    'aaser.filters',
    'aaser.directives',
    'aaser.models',
    'ngRoute',
    'ngResource',
    'ngCookies',
    'mgcrea.ngStrap',
    'http-auth-interceptor',
    'base64',
    'aaser.appConfig'
]).
    config(['$routeProvider', '$httpProvider', function ($routeProvider) {
        $routeProvider.
            when("/", {templateUrl: "partials/pages/home.html"}).
            when("/login", {templateUrl: "partials/pages/login.html", controller: "LoginController"}).
            when("/assignments", {templateUrl: "partials/pages/mappedEntities.html", controller: "MappedEntitiesController", role: 'CONFIGURE_AUTH'}).
            when("/mapping", {templateUrl: "partials/pages/entityMapping.html", controller: "EntityMappingController", role: 'CONFIGURE_AUTH'});


    }]);

angular.module('aaser.controllers', []);
angular.module('aaser.directives', []);
angular.module('aaser.models', []);

